package com.it.service.impl;

import com.it.dao.BookDao;
import com.it.dao.impl.BookDaoImpl;
import com.it.service.BookService;

public class BookServiceImpl implements BookService {
    // private BookDao bookDao = new BookDaoImpl();
    // 删除业务层中使用new方式创建的Dao对象
    private BookDao bookDao;


    public void save() {
        System.out.println("book service save ...");
        bookDao.save();
    }

    // 提供对应的setter方法
    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }
}
